package com.liaozhai.community.service;

import com.liaozhai.community.entity.LoginTicket;
import com.liaozhai.community.entity.User;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface UserService {

    public User findUserById(int id);

    Map<String, Object> register(User user);

    public int activation(int userId, String code);

    public Map<String, Object> login(String username, String password, int expiredSeconds);

    public void logout(String ticket);

    public LoginTicket findLoginTicket(String ticket);

    void updateHeader(int id, String path);

    Map<String, Object> updatePassword(String originpassword,String newpassword,String confirmpassword);

    User findUserByName(String toName);


}
